package com.ckf.ckfmall.orders.controller;

import com.ckf.ckfmall.api.entity.UserAddress;
import com.ckf.ckfmall.api.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author 安详的苦丁茶
 * @date 2020/6/5 8:42
 */

@RestController
public class OrderController {

    @Autowired
    private OrdersService ordersService;

    @GetMapping("/initOrder")
    public Map<String, Object> initOrder(String userId){
        return ordersService.initOrder(userId);
    }
}
